package org.chen.aao.ai.feign;

import org.chen.aao.common.file.dto.FileUploadResponse;
import org.chen.aao.common.response.Result;
import org.chen.aao.ai.feign.fallback.OSSFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(name = "service-file" , fallback = OSSFeignFallback.class)
public interface OSSServiceClient {
    @PostMapping("/api/file/upload/audio")
    FileUploadResponse uploadAudioFile(@RequestParam("file") MultipartFile file);

    @PostMapping("/api/file/upload/image")
    FileUploadResponse uploadImageFile();
}
